import { createRouter, createWebHistory, Router } from "vue-router";
import routes from "@/router/routes.ts";

const router: Router = createRouter({
  history: createWebHistory(),
  routes: routes,
  scrollBehavior() {
    // 滚动行为
    return {
      left: 0,
      top: 0,
    };
  },
});
export default router;
